package com.felix.pattern.prototype;

import lombok.Data;

/**
 * Shape
 *
 * @author xuejinhua
 * @date 2019/1/14 18:13
 */
@Data
public abstract class AbstractShape implements Cloneable {

    private String id;
    protected String type;

    abstract void draw();

    @Override
    public Object clone() {
        Object clone = null;
        try {
            clone = super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return clone;
    }
}
